package com.example.design.ddd.practice.adapter.driven.persistence.orgmng;

import com.example.design.ddd.practice.domain.orgmng.entity.OrgType;
import com.example.design.ddd.practice.domain.orgmng.repository.OrgTypeRepository;
import com.example.design.ddd.practice.domain.orgmng.entity.OrgTypeStatus;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @Description
 * @Author liuzhihui
 * @Date 2024/5/31
 */
@Repository
public class OrgTypeRepositoryJdbc implements OrgTypeRepository {
    @Override
    public Boolean existsByCodeAndStatus(Long tenantId, String orgTypeCode, OrgTypeStatus orgTypeStatus) {
        return true;
    }

    @Override
    public Optional<OrgType> findByCodeAndStatus(Long tenantId, String orgTypeCode, OrgTypeStatus orgTypeStatus) {
        return Optional.empty();
    }
}
